/**	
 * <br>
 * Copyright 2011 IFlyTek. All rights reserved.<br>
 * <br>			 
 * Package: com.iflytek.xzzdry.base <br>
 * FileName: SysCode.java <br>
 * <br>
 * @version
 * @author hyzha@iflytek.com
 * @created 2012-5-6
 * @last Modified 
 * @history
 */

package com.iflytek.ci.base;

/**
 * 
 * 业务字典定义类
 * 
 * @author sbwang@iflytek.com
 * @lastModified
 * @history
 */
public class SysCode {

    // ~----------------------------------------------------------------------------------------
    //
    // 日期格式化
    //
    // ~----------------------------------------------------------------------------------------

    /**
     * 特定时间
     */
    public static final String SPE_TIME = "00:00";

    /**
     * 长日期格式化:yyyy-MM-dd HH:mm:ss
     */
    public static String FORMATTER_L = "yyyy-MM-dd HH:mm:ss";
    /**
     * 短日期格式化:yyyy-MM-dd
     */
    public static final String FORMATTER_S = "yyyy-MM-dd";

    /**
     * yyyy年MM月dd日
     */
    public static String FORMATTER_HZ = "yyyy年MM月dd日";

    /**
     * 公安部要求的日期格式
     */
    public static final String DATESTR_FORMATTER_L = "yyyyMMddHHmmss";

    /**
     * 公安部要求的日期格式的数据库格式
     */
    public static String GAB_SQL_FORMATTER_L = "yyyymmddhh24miss";

    /**
     * 长日期格式 数据库格式
     */
    public static String SQL_FORMATTER_L = "yyyy-mm-dd hh24:mi:ss";

    /**
     * 短日期格式化:yyyyMMdd
     */
    public static final String DATESTR_FORMATTER_S = "yyyyMMdd";

    /**
     * 
     * 删除状态
     * 
     * @author xkfeng@iflytek.com
     * @lastModified
     * @history
     */
    public interface DELETE_STATE {
        /**
         * 删除
         */
        public static final String YES = "1";
        /**
         * 未删除
         */
        public static final String NO = "0";
    }

    /**
     * 
     * 调度状态
     * 
     * @author sbwang@iflytek.com
     * @lastModified
     * @history
     */
    public interface YXDD_STATE {

        /**
         * 未启动
         */
        public static final String WQD = "0";

        /**
         * 已启动
         */
        public static final String YQD = "1";

        /**
         * 正在运行
         */
        public static final String ZZYX = "2";

        /**
         * 已停止
         */
        public static final String YTZ = "3";

    }

    /**
     * 
     * 统一封装提示信息
     * 
     * @author yali
     * @lastModified
     * @history
     */
    public interface NOTE_MESSAGE {
        /**
         * 保存成功
         */
        public static final String BCCG = "保存成功！";
        /**
         * 保存失败
         */
        public static final String BCSB = "保存失败！";
        /**
         * 设置成功！
         */
        public static final String YXDD_XGCG = "设置成功！";

        /**
         * 设置失败！
         */
        public static final String YXDD_XGSB = "设置失败！";

        /**
         * 删除成功
         */
        public static final String DELETE_SUCCESS = "删除成功！";

        /**
         * 删除失败
         */
        public static final String DELETE_FAIL = "删除失败！";

        /**
         * 主数据名称已存在的提示信息
         */
        public static final String MAIN_NAME_EXISTS = "主数据名称已存在，请重新输入!";

        /**
         * 主数据描述已存在的提示信息
         */
        public static final String MAIN_DESC_EXISTS = "主数据描述已存在，请重新输入!";

        /**
         * 主数据名称和描述均存在的提示信息
         */
        public static final String MAIN_BOTH_EXISTS = "主数据名称和描述均已存在，请重新输入!";

        /**
         * 主数据名称和描述均不存在的标志信息
         */
        public static final String MAIN_NON_EXISTS = "true";

        /**
         * 主数据已被服务访问，禁止删除
         */
        public static final String GJZ_READED = "目前此数据已被服务引用，禁止删除!";

        /**
         * 允许操作
         */
        public static final String OPERATE_LEGAL = "true";

        /**
         * 最少包含一个表信息
         */
        public static final String ATLEAST_ONE_TABLE = "最少包含一个表信息";

        /**
         * 至少包含一个元素信息
         */
        public static final String ATLEAST_ONE_ELEMENT = "最少包含一个元素信息";

        /**
         * 主数据查询时数据id为空
         */
        public static final String NO_DATA_ID = "请选择需要展示的主数据";
    }

    /**
     * 数字：0
     */
    public static final int ZERO = 0;

    /**
     * 数字：1
     */
    public static final int ONE = 1;

    /**
     * 数字：2
     */
    public static final int TWO = 2;

    /**
     * 数字：3
     */
    public static final int THREE = 3;

    /**
     * 数字：4
     */
    public static final int FOUR = 4;

    /**
     * 数字：5
     */
    public static final int FIVE = 5;

    /**
     * 数字：6
     */
    public static final int SIX = 6;

    /**
     * 数字：7
     */
    public static final int SEVEN = 7;

    /**
     * 数字：8
     */
    public static final int EIGHT = 8;

    /**
     * 数字：10
     */
    public static final int TEN = 10;

    /**
     * 数字：12
     */
    public static final int TWELVE = 12;

    /**
     * 数字：14
     */
    public static final int FOURTEEN = 14;

    /**
     * 数字：15
     */
    public static final int FIFTEEN = 15;

    /**
     * 数字：18
     */
    public static final int EIGHTEEN = 18;

    /**
     * 数字：100
     */
    public static final int ONE_HUNDRED = 100;

    /**
     * 数字：1000
     */
    public static final int ONE_THOUSAND = 1000;

    /**
     * 数字：2000
     */
    public static final int TWO_THOUSAND = 2000;

    /**
     * 数字3000
     */
    public static final int THREE_THOUSAND = 3000;
    /**
     * 数字5000
     */
    public static final int FIVE_THOUSAND = 5000;

    /**
     * 比较操作字符
     */
    public static interface COMPARE_OPERATION {
        /**
         * 大于等于
         */
        public static final String GE = ">=";

        /**
         * 大于
         */
        public static final String GT = ">";

        /**
         * 等于
         */
        public static final String E = "=";

        /**
         * 小于等于
         */
        public static final String LE = "<=";

        /**
         * 小于
         */
        public static final String LT = "<";

    }

    /**
     * 
     * 特殊字符
     * 
     * @author scrum
     * @lastModified
     * @history
     */
    public static interface SPECIAL_CHARACTER {

        /**
         * 分隔符_逗号
         */
        public static final String SEPARATOR_DH = ",";

        /**
         * 分隔符_减号
         */
        public static final String SEPARATOR_JH = "-";

        /**
         * 分隔符_冒号
         */
        public static final String SEPARATOR_MH = ":";

        /**
         * 空字符
         */
        public static final String NULL_STRING = "";

        /**
         * 空格
         */
        public static final String BLANK_SPACE = " ";

        /**
         * $符号
         */
        public static final String DOLLAR = "$";

        /**
         * "("符号
         */
        public static final String LEFT_SMALL_BRACE = "(";

        /**
         * ")"
         */
        public static final String RIGHT_SMALL_BRACE = ")";
        /**
         * 字符"0"
         */
        public static final String STR_ZERO = "0";

        /**
         * 字符"1"
         */
        public static final String STR_ONE = "1";

        /**
         * 字符"00"
         */
        public static final String DOUBLE_ZERO = "00";

        /**
         * 字符"001"
         */
        public static final String STR_LLY = "001";

        /**
         * 无数据
         */
        public static final String EMPTY_DATA = "无数据";

        /**
         * undefined
         */
        public static final String UNDEFINED = "undefined";
    }

    /**
     * 控件类型
     * 
     * @author mdzhang
     * @lastModified
     * @history
     */
    public interface MODEL_TYPE {
        /**
         * 控件类型1
         */
        public static final int ONE = 1;
        /**
         * 控件类型2
         */
        public static final int TWO = 2;
        /**
         * 控件类型3
         */
        public static final int THREE = 3;
        /**
         * 控件类型4
         */
        public static final int FOUR = 4;
        /**
         * 控件类型5
         */
        public static final int FIVE = 5;
        /**
         * 控件类型6
         */
        public static final int SIX = 6;
        /**
         * 控件类型7
         */
        public static final int SEVEN = 7;
        /**
         * 控件类型8
         */
        public static final int EIGHT = 8;
        /**
         * 控件类型9
         */
        public static final int NINE = 9;
        /**
         * 控件类型10
         */
        public static final int TEN = 10;
        /**
         * 控件类型11
         */
        public static final int ELEVEN = 11;
    }

    /**
     * 
     * 运行模式 增量/全量
     * 
     * @author mdzhang
     * @lastModified
     * @history
     */
    public interface RUN_MODEL {
        /**
         * 增量
         */
        public static final String ZL = "1";

        /**
         * 全量
         */
        public static final String QL = "2";
    }

    /**
     * 
     *  周期类型
     *  @author mdzhang
     *  @lastModified       
     *  @history
     */
    public interface CYCLE_TYPE {
        /**
         * 每天
         */
        public static final String EVERY_DAY = "0";

        /**
         * 周一
         */
        public static final String MONDAY = "1";

        /**
         * 周二
         */
        public static final String TUESDAY = "2";

        /**
         * 周三
         */
        public static final String WEDNESDAY = "3";

        /**
         * 周四
         */
        public static final String THURSDAY = "4";

        /**
         * 周五
         */
        public static final String FIRDAY = "5";

        /**
         * 周六
         */
        public static final String SATURDAY = "6";

        /**
         * 周日
         */
        public static final String SUNDAY = "7";
    }

    /**
     * 
     * 主数据层级结构设置URL
     * 
     * @author mdzhang
     * @lastModified
     * @history
     */
    public interface URL {
        /**
         * 主数据获取关键字和元素的URL
         */
        public static final String CHILD_DATA_ZSJ = "/sjzx/zsj/childData.do?zsjId=";

        /**
         * 关键字获取来源信息配置的URL
         */
        public static final String GRAND_CHILD_GJZ = "/sjzx/zsj/grandChildData.do?gjz=";

        /**
         * 元素配置获取元素来源信息的URL
         */
        public static final String GRAND_CHILD_YS = "/sjzx/zsj/grandChildData.do?ysId=";
    }

    /**
     * 
     * 响应状态
     * 
     * @author mdzhang
     * @lastModified
     * @history
     */
    public interface RES_STATE {
        /**
         * 正常响应
         */
        public static final String ZCXY = "0";

        /**
         * 响应异常
         */
        public static final String XYYC = "1";
    }

    /**
     * 
     * 服务状态
     * 
     * @author mdzhang
     * @lastModified
     * @history
     */
    public interface SERVICE_STATE {
        /**
         * 启动
         */
        public static final String START = "1";
        /**
         * 停止
         */
        public static final String STOP = "0";
    }

    /**
     * The operation result state .For example :0 success ,-1 error
     */
    public static interface OPERATION_STATE {
        /**
         * Success.
         */
        public static final int SUCCESS_CODE = 0;

        /**
         * Error
         */
        public static final int ERROR_CODE = -1;
    }
}
